package ccmis.finance.voucher.bo;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Local;
import javax.ejb.Stateless;

import org.jfox.entity.MappedEntity;

import jfox.platform.infrastructure.DataAccessObject;
import jfox.platform.infrastructure.SuperBO;
import ccmis.finance.voucher.entity.VoucherHead;
import ccmis.finance.voucher.entity.VoucherHeadMap;
import ccmis.finance.voucher.dao.VoucherHeadDAO;

@Stateless
@Local
public class VoucherHeadBoBean extends SuperBO implements VoucherHeadBo{
	@EJB
	VoucherHeadDAO voucherHeadDAO;

    public DataAccessObject getDataAccessObject() {
        return voucherHeadDAO;
    }
	public List<MappedEntity> getAllVoucherHeads() {
	        return voucherHeadDAO.getAllVoucherHeads();
	    } 
    public List<MappedEntity> getAllVoucherHeadsByInvest(){
    	    return voucherHeadDAO.getAllVoucherHeadsByInvest();
	}
    public List<MappedEntity> getAllVoucherHeadsByPayment(){
    	    return voucherHeadDAO.getAllVoucherHeadsByPayment();
    }
	public List<MappedEntity> getAVoucherHeadByTime(String stats,String end,String type,boolean ftest) {
	        return voucherHeadDAO.getAVoucherHeadByTime(stats, end,type,ftest);
	    }
	
}
